#ifndef CAMERA_H
#define CAMERA_H

#include <d3dx9.h>
#include "D3DUtil.h"

class Camera{
public:
	Camera();

	D3DXVECTOR3& getPos();
	RECT getAABB();

	void setMapSize(RECT ps);
	void setView();
	void setLens(float width, float height, float nearZ, float farZ);
	void update(float dt);
	void setPos(int x, int y, bool needy);
	void reset(int x, int y);
private:
	D3DXMATRIX mOrtho2D;    
    D3DXMATRIX mIdentity;
	D3DXVECTOR3 mPosW;
	RECT mAABB;
	RECT mMapSize;
	int mOldX;
	int mOldY;
	int mOldWidth;
	int mOldHeight;
};
#endif